* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 主容器 */
.admin-container {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏样式 */
.sidebar {
    transition: width 0.3s ease;
    background-color: #2c3e50; /* 使用深色背景 */
    color: white;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
    padding: 20px;
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar.collapsed .nav-item span {
    display: none;
}

.sidebar .logo {
    margin-bottom: 40px;
    text-align: center;
}

.sidebar .nav-menu .nav-item {
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.sidebar .nav-menu .nav-item:hover {
    background-color: #34495e;
}

.sidebar .nav-menu .nav-item a {
    color: white;
    text-decoration: none;
}

.nav-menu {
    padding: 20px 0;
}

.nav-item {
    padding: 12px 20px;
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 3px solid #3498db;
}

.nav-item i {
    width: 20px;
    text-align: center;
}

/* 主内容区 */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* 顶部导航栏 */
.header {
    background-color: white;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.search-bar {
    position: relative;
    width: 300px;
}

.search-bar input {
    width: 100%;
    padding: 8px 15px 8px 35px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.search-bar input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.search-bar i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info span {
    font-weight: 500;
}

/* 快速统计 */
.admin-toolbar {
    background-color: white;
    padding: 20px 25px;
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quick-stats {
    display: flex;
    gap: 30px;
}

/* 统计卡片样式 */
.stat-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 24px;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
}

.stat-label {
    color: #7f8c8d;
}

.stat-change {
    margin-top: 5px;
}

.stat-change i {
    font-size: 14px;
    margin-right: 5px;
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-custom {
    background-color: #3498db;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-primary-custom:hover {
    background-color: #2980b9;
}

.btn-secondary-custom {
    background-color: #bdc3c7;
    color: #333;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-secondary-custom:hover {
    background-color: #aab2bd;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* 仓库列表 */
.dashboard {
    padding: 0 25px 25px;
    flex-grow: 1;
    justify-content: center;
}

.dashboard-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dashboard-title h3 {
    font-size: 1.5rem;
    color: #2c3e50;
}

.filter-bar {
    display: flex;
    gap: 15px;
    align-items: center;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

.filter-group select,
.filter-group input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 150px;
}

/* 表格样式 */
/* 更新或添加以下样式到您的CSS文件 */

/* 表格整体样式 */
.warehouse-list {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 20px;
}

/* 表头样式 */
.warehouse-list thead {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
}

.warehouse-list th {
    padding: 10px 20px;
    color: white;
    font-weight: 600;
    text-align: center;
    position: relative;
}

.warehouse-list th:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.2);
}

/* 表格内容样式 */
.warehouse-list td {
    flex-direction: row;
    padding: 10px 20px;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
    transition: background-color 0.2s;
}

.warehouse-list tr:last-child td {
    border-bottom: none;
}

.warehouse-list tr:hover td {
    background-color: #f8f9fa;
}

/* 状态标签样式 */
.warehouse-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    min-width: 80px;
    text-align: center;
}

.warehouse-status-normal {
    background-color: #e5f7ee;
    color: #2ecc71;
}

.warehouse-status-warning {
    background-color: #fff4e5;
    color: #f39c12;
}

.warehouse-status-full {
    background-color: #fde8e8;
    color: #e74c3c;
}

.warehouse-status-maintenance {
    background-color: #e8f4fd;
    color: #3498db;
}

/* 进度条样式 */
.usage-bar {
    background: #eee;
    border-radius: 4px;
    height: 8px;
    width: 100%;
    margin-bottom: 4px;
    overflow: hidden;
}

.usage-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.usage-bar-fill-normal {
    background: linear-gradient(90deg, #2ecc71, #1abc9c);
}

.usage-bar-fill-warning {
    background: linear-gradient(90deg, #f39c12, #e67e22);
}

.usage-bar-fill-full {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.usage-percentage {
    font-size: 12px;
    color: #7f8c8d;
    display: block;
    text-align: center;
}

/* 状态标签 */
.status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    width: 20px;
    height: 20px;
}

.status-processing {
    background-color: #fff4e5;
    color: #f39c12;
}

.status-warning {
    background-color: #e5f7ee;
    color: #2ecc71;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 5px;
}

.pagination a {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 4px;
    color: #333;
    transition: all 0.3s;
}

.pagination a.active {
    background-color: #007bff;
    color: white;
}

.pagination a:hover:not(.active) {
    background-color: #ddd;
}

/* 下拉菜单样式 */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

